home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / SHARED.DIR / 01943_Script_Travel < prev    next >
Text File  |  1995-09-13  |  670b  |  31 lines

  1. global gEndOfScroll, gHotSpotStatus
  2.  
  3. on TravelBackwards UntilWhatFrame
  4.   set gHotSpotStatus = 0
  5.   repeat while (the stilldown and rollover(the clickon))
  6.     put the framelabel into gEndOfScroll
  7.     if gEndOfScroll = UntilWhatFrame then
  8.       --beep
  9.       exit
  10.     else
  11.       go the frame -1
  12.       updatestage
  13.     end if
  14.   end repeat
  15. end
  16.  
  17.  
  18. on TravelForewards UntilWhatFrame
  19.   set gHotSpotStatus = 0
  20.   repeat while (the stilldown and rollover(the clickon))
  21.     put the framelabel into gEndOfScroll
  22.     if gEndOfScroll = UntilWhatFrame then
  23.       --beep
  24.       exit
  25.     else
  26.       go the frame + 1
  27.       updatestage
  28.     end if
  29.   end repeat
  30. end
  31.